package com.fishery.refrigeratory.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fishery.refrigeratory.entity.Refrigeratory;
import com.fishery.refrigeratory.entity.RefrigeratoryInInfo;

import java.util.List;

public interface RefrigeratoryInInfoService extends IService<RefrigeratoryInInfo> {

    //根据冷库id查询冷库的入库信息
    List<RefrigeratoryInInfo> selectInfoBytRefrigeratoryId(String refrigeratoryId);

    //根据冷库id分页查询冷库的入库信息
    Page<RefrigeratoryInInfo> selectPageInfoByRefrigeratoryId(String refrigeratoryId, Integer page, Integer size);

    //根据基地id查询冷库的入库信息
    List<RefrigeratoryInInfo> selectInfoByBaseId(List<Refrigeratory> refrigeratoryList);

    //根据基地id分页查询冷库的入库信息
    Page<RefrigeratoryInInfo> selectPageInfoByBaseId(List<Refrigeratory> refrigeratoryList, Integer page, Integer size);

    //查询所有入库信息（不限于基地和冷库）
    List<RefrigeratoryInInfo> selectAllInfo();

    //分页查询所有入库信息（不限于基地和冷库）
    Page<RefrigeratoryInInfo> selectPageAllInfo(Integer page, Integer size);

    //新增入库信息
    int insertInInfo(RefrigeratoryInInfo refrigeratoryInInfo);

    //删除入库信息
    int deleteInInfo(String id);

    //更新入库信息
    int updateInInfo(RefrigeratoryInInfo updateRefrigeratoryInInfo);

}
